package cn.frh.feign;

import cn.frh.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@FeignClient(name = "user-server",fallbackFactory = UserServiceFallbackFactory.class)
@RequestMapping("/user")
public interface UserService {
    @GetMapping("/getByUserId/{id}")
    User getByUserId(@PathVariable("id") Long id);
}
